package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.MonitoringPointMapper;
import com.ruoyi.system.domain.MonitoringPoint;
import com.ruoyi.system.service.IMonitoringPointService;

/**
 * 监测点信息Service业务层处理
 */
@Service
public class MonitoringPointServiceImpl implements IMonitoringPointService 
{
    @Autowired
    private MonitoringPointMapper monitoringPointMapper;

    /**
     * 查询监测点信息列表
     * 
     * @param monitoringPoint 监测点信息
     * @return 监测点信息
     */
    @Override
    public List<MonitoringPoint> selectMonitoringPointList(MonitoringPoint monitoringPoint)
    {
        return monitoringPointMapper.selectMonitoringPointList(monitoringPoint);
    }

    /**
     * 根据监测点ID查询监测点信息
     * 
     * @param pointId 监测点ID
     * @return 监测点信息
     */
    @Override
    public MonitoringPoint selectMonitoringPointByPointId(Long pointId)
    {
        return monitoringPointMapper.selectMonitoringPointByPointId(pointId);
    }
    
    /**
     * 根据监测点类型查询监测点信息
     * 
     * @param pointType 监测点类型
     * @return 监测点信息集合
     */
    @Override
    public List<MonitoringPoint> selectMonitoringPointsByType(String pointType)
    {
        return monitoringPointMapper.selectMonitoringPointsByType(pointType);
    }
    
    /**
     * 查询空气质量监测点信息
     * 
     * @return 监测点信息集合
     */
    @Override
    public List<MonitoringPoint> selectAirMonitoringPoints()
    {
        return monitoringPointMapper.selectAirMonitoringPoints();
    }
    
    /**
     * 查询水质监测点信息
     * 
     * @return 监测点信息集合
     */
    @Override
    public List<MonitoringPoint> selectWaterMonitoringPoints()
    {
        return monitoringPointMapper.selectMonitoringPointsByType("WATER");
    }
}